package com.lyandwc.lw_bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyandwc.lw_bbs.entity.Comment;
import com.lyandwc.lw_bbs.entity.Topic;
import com.lyandwc.lw_bbs.entity.TopicTag;

import java.util.List;

public interface TopicService extends IService<Topic> {
    Topic findTopic(int id);

    List<Topic> listTopicsByCategory(int categoryId, int page, int limit);

    List<Topic> listTopicsByUser(int userId, int page, int limit);

    List<Topic> listTopicsByTag(int tagId, int page, int limit);

    Topic updateCount(int topicId);
}
